﻿<html class="hb-loaded">
<head>
    <meta charset="utf-8">
    <meta name="viewport"
          content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no, minimal-ui">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="format-detection" content="telephone=no">
    <meta name="format-detection" content="email=no">
    <meta name="format-detection" content="address=no;">
    <meta name="msapplication-tap-highlight" content="no">
    <meta name="applicable-device" content="mobile">
    <meta name="copyright" content="Copyright qfang.com All Rights Reserved">
    <title>【房产网,房地产信息网】- Q房网</title>
    <meta name="keywords" content="房产网,房地产信息网">
    <meta name="description" content="Q房网是一家立志于为全国房地产行业提供线上与线下（O2O）全渠道营销解决方案的房地产网络平台,提供全面的二手房、新房、小区、租房、写字楼等房产信息。">
    <link type="text/css" rel="stylesheet" href="style/css/select-city.css?qv=1535614912039">
</head>
<body huaban_collector_injected="true">
<section class="box-vertical city-body">
    <header class="header-body">
        <div class="header">
            <h1 class="title">选择城市</h1>
        </div>
        <a class="go-back" href="javascript:;" onclick="goback()"></a>
    </header>
    <article class="article-body flex">
        <div class="items-body" data-number="0">
            <div class="items">
                <p class="items-title" key-value="当前">当前城市</p>
                <div class="items-content">
                    <a href="javascript:void(0);">{{session('cityName',\App\City::firstOrFail()->title)}}</a>
                </div>
            </div>
            <div class="items">
                <p class="items-title" key-value="热门">热门城市</p>
                <div class="items-content">
                    @if($city->isNotEmpty())
                       @foreach($city as $item)
                           @if($item->is_hot==1)
                           @if($type == 0)
                           <a href="/?changeCity={{$item->id}}">{{$item->title}}</a>
                           @else
                           <a href="/workshop?changeCity={{$item->id}}">{{$item->title}}</a>
                           @endif                            
                           @endif
                        @endforeach
                    @endif
                </div>
            </div>
            @if(count($cityList)>0)
                @foreach($cityList as $k =>$value)
            <div class="items">
                <p class="items-title" key-value="{{$k}}">{{$k}}</p>
                <div class="items-content">
                    @if(count($value)>0)
                    @foreach($value as $value1)                    
                    @if($type == 0)
                    <a href="/?changeCity={{$value1['city_id']}}">{{$value1['title']}}</a>
                    @else
                    <a href="/workshop?changeCity={{$value1['city_id']}}">{{$value1['title']}}</a>
                    @endif 
                    @endforeach
                    @endif
                </div>
            </div>
                @endforeach
            @endif
        </div>
    </article>
    <p class="fixed-title">当前城市</p>
</section>
<section class="location-nav">
    <a href="javascript:void(0);" key-value="当前城市">当前</a>
    <a href="javascript:void(0);" key-value="热门城市">热门</a>
    @if(count($cityList)>0)
        @foreach($cityList as $k =>$value)
    <a href="javascript:void(0);" key-value="{{$k}}">{{$k}}</a>
        @endforeach
    @endif

</section>
<div class="box-align cur-selected" style="display:none;">当前</div>

<script type="application/javascript">
    var app = app || {};
    app.ctx = '/guangzhou';
</script>
<script type="text/javascript" src="style/js/jquery-2.1.4.js?qv=1535614912039"></script>
<script type="text/javascript" src="style/js/jquery.phone.js?qv=1535614912039"></script>
<script type="text/javascript" src="style/js/select-city.js?qv=1535614912039"></script>
</body>
</html>